package edu.xust.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class AuditsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public AuditsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAuidIsNull() {
            addCriterion("auId is null");
            return (Criteria) this;
        }

        public Criteria andAuidIsNotNull() {
            addCriterion("auId is not null");
            return (Criteria) this;
        }

        public Criteria andAuidEqualTo(Integer value) {
            addCriterion("auId =", value, "auid");
            return (Criteria) this;
        }

        public Criteria andAuidNotEqualTo(Integer value) {
            addCriterion("auId <>", value, "auid");
            return (Criteria) this;
        }

        public Criteria andAuidGreaterThan(Integer value) {
            addCriterion("auId >", value, "auid");
            return (Criteria) this;
        }

        public Criteria andAuidGreaterThanOrEqualTo(Integer value) {
            addCriterion("auId >=", value, "auid");
            return (Criteria) this;
        }

        public Criteria andAuidLessThan(Integer value) {
            addCriterion("auId <", value, "auid");
            return (Criteria) this;
        }

        public Criteria andAuidLessThanOrEqualTo(Integer value) {
            addCriterion("auId <=", value, "auid");
            return (Criteria) this;
        }

        public Criteria andAuidIn(List<Integer> values) {
            addCriterion("auId in", values, "auid");
            return (Criteria) this;
        }

        public Criteria andAuidNotIn(List<Integer> values) {
            addCriterion("auId not in", values, "auid");
            return (Criteria) this;
        }

        public Criteria andAuidBetween(Integer value1, Integer value2) {
            addCriterion("auId between", value1, value2, "auid");
            return (Criteria) this;
        }

        public Criteria andAuidNotBetween(Integer value1, Integer value2) {
            addCriterion("auId not between", value1, value2, "auid");
            return (Criteria) this;
        }

        public Criteria andAduidIsNull() {
            addCriterion("aduId is null");
            return (Criteria) this;
        }

        public Criteria andAduidIsNotNull() {
            addCriterion("aduId is not null");
            return (Criteria) this;
        }

        public Criteria andAduidEqualTo(Integer value) {
            addCriterion("aduId =", value, "aduid");
            return (Criteria) this;
        }

        public Criteria andAduidNotEqualTo(Integer value) {
            addCriterion("aduId <>", value, "aduid");
            return (Criteria) this;
        }

        public Criteria andAduidGreaterThan(Integer value) {
            addCriterion("aduId >", value, "aduid");
            return (Criteria) this;
        }

        public Criteria andAduidGreaterThanOrEqualTo(Integer value) {
            addCriterion("aduId >=", value, "aduid");
            return (Criteria) this;
        }

        public Criteria andAduidLessThan(Integer value) {
            addCriterion("aduId <", value, "aduid");
            return (Criteria) this;
        }

        public Criteria andAduidLessThanOrEqualTo(Integer value) {
            addCriterion("aduId <=", value, "aduid");
            return (Criteria) this;
        }

        public Criteria andAduidIn(List<Integer> values) {
            addCriterion("aduId in", values, "aduid");
            return (Criteria) this;
        }

        public Criteria andAduidNotIn(List<Integer> values) {
            addCriterion("aduId not in", values, "aduid");
            return (Criteria) this;
        }

        public Criteria andAduidBetween(Integer value1, Integer value2) {
            addCriterion("aduId between", value1, value2, "aduid");
            return (Criteria) this;
        }

        public Criteria andAduidNotBetween(Integer value1, Integer value2) {
            addCriterion("aduId not between", value1, value2, "aduid");
            return (Criteria) this;
        }

        public Criteria andApuidIsNull() {
            addCriterion("apuId is null");
            return (Criteria) this;
        }

        public Criteria andApuidIsNotNull() {
            addCriterion("apuId is not null");
            return (Criteria) this;
        }

        public Criteria andApuidEqualTo(Integer value) {
            addCriterion("apuId =", value, "apuid");
            return (Criteria) this;
        }

        public Criteria andApuidNotEqualTo(Integer value) {
            addCriterion("apuId <>", value, "apuid");
            return (Criteria) this;
        }

        public Criteria andApuidGreaterThan(Integer value) {
            addCriterion("apuId >", value, "apuid");
            return (Criteria) this;
        }

        public Criteria andApuidGreaterThanOrEqualTo(Integer value) {
            addCriterion("apuId >=", value, "apuid");
            return (Criteria) this;
        }

        public Criteria andApuidLessThan(Integer value) {
            addCriterion("apuId <", value, "apuid");
            return (Criteria) this;
        }

        public Criteria andApuidLessThanOrEqualTo(Integer value) {
            addCriterion("apuId <=", value, "apuid");
            return (Criteria) this;
        }

        public Criteria andApuidIn(List<Integer> values) {
            addCriterion("apuId in", values, "apuid");
            return (Criteria) this;
        }

        public Criteria andApuidNotIn(List<Integer> values) {
            addCriterion("apuId not in", values, "apuid");
            return (Criteria) this;
        }

        public Criteria andApuidBetween(Integer value1, Integer value2) {
            addCriterion("apuId between", value1, value2, "apuid");
            return (Criteria) this;
        }

        public Criteria andApuidNotBetween(Integer value1, Integer value2) {
            addCriterion("apuId not between", value1, value2, "apuid");
            return (Criteria) this;
        }

        public Criteria andAutypeIsNull() {
            addCriterion("auType is null");
            return (Criteria) this;
        }

        public Criteria andAutypeIsNotNull() {
            addCriterion("auType is not null");
            return (Criteria) this;
        }

        public Criteria andAutypeEqualTo(String value) {
            addCriterion("auType =", value, "autype");
            return (Criteria) this;
        }

        public Criteria andAutypeNotEqualTo(String value) {
            addCriterion("auType <>", value, "autype");
            return (Criteria) this;
        }

        public Criteria andAutypeGreaterThan(String value) {
            addCriterion("auType >", value, "autype");
            return (Criteria) this;
        }

        public Criteria andAutypeGreaterThanOrEqualTo(String value) {
            addCriterion("auType >=", value, "autype");
            return (Criteria) this;
        }

        public Criteria andAutypeLessThan(String value) {
            addCriterion("auType <", value, "autype");
            return (Criteria) this;
        }

        public Criteria andAutypeLessThanOrEqualTo(String value) {
            addCriterion("auType <=", value, "autype");
            return (Criteria) this;
        }

        public Criteria andAutypeLike(String value) {
            addCriterion("auType like", value, "autype");
            return (Criteria) this;
        }

        public Criteria andAutypeNotLike(String value) {
            addCriterion("auType not like", value, "autype");
            return (Criteria) this;
        }

        public Criteria andAutypeIn(List<String> values) {
            addCriterion("auType in", values, "autype");
            return (Criteria) this;
        }

        public Criteria andAutypeNotIn(List<String> values) {
            addCriterion("auType not in", values, "autype");
            return (Criteria) this;
        }

        public Criteria andAutypeBetween(String value1, String value2) {
            addCriterion("auType between", value1, value2, "autype");
            return (Criteria) this;
        }

        public Criteria andAutypeNotBetween(String value1, String value2) {
            addCriterion("auType not between", value1, value2, "autype");
            return (Criteria) this;
        }

        public Criteria andApplynoIsNull() {
            addCriterion("applyNo is null");
            return (Criteria) this;
        }

        public Criteria andApplynoIsNotNull() {
            addCriterion("applyNo is not null");
            return (Criteria) this;
        }

        public Criteria andApplynoEqualTo(Integer value) {
            addCriterion("applyNo =", value, "applyno");
            return (Criteria) this;
        }

        public Criteria andApplynoNotEqualTo(Integer value) {
            addCriterion("applyNo <>", value, "applyno");
            return (Criteria) this;
        }

        public Criteria andApplynoGreaterThan(Integer value) {
            addCriterion("applyNo >", value, "applyno");
            return (Criteria) this;
        }

        public Criteria andApplynoGreaterThanOrEqualTo(Integer value) {
            addCriterion("applyNo >=", value, "applyno");
            return (Criteria) this;
        }

        public Criteria andApplynoLessThan(Integer value) {
            addCriterion("applyNo <", value, "applyno");
            return (Criteria) this;
        }

        public Criteria andApplynoLessThanOrEqualTo(Integer value) {
            addCriterion("applyNo <=", value, "applyno");
            return (Criteria) this;
        }

        public Criteria andApplynoIn(List<Integer> values) {
            addCriterion("applyNo in", values, "applyno");
            return (Criteria) this;
        }

        public Criteria andApplynoNotIn(List<Integer> values) {
            addCriterion("applyNo not in", values, "applyno");
            return (Criteria) this;
        }

        public Criteria andApplynoBetween(Integer value1, Integer value2) {
            addCriterion("applyNo between", value1, value2, "applyno");
            return (Criteria) this;
        }

        public Criteria andApplynoNotBetween(Integer value1, Integer value2) {
            addCriterion("applyNo not between", value1, value2, "applyno");
            return (Criteria) this;
        }

        public Criteria andAustatusIsNull() {
            addCriterion("auStatus is null");
            return (Criteria) this;
        }

        public Criteria andAustatusIsNotNull() {
            addCriterion("auStatus is not null");
            return (Criteria) this;
        }

        public Criteria andAustatusEqualTo(Integer value) {
            addCriterion("auStatus =", value, "austatus");
            return (Criteria) this;
        }

        public Criteria andAustatusNotEqualTo(Integer value) {
            addCriterion("auStatus <>", value, "austatus");
            return (Criteria) this;
        }

        public Criteria andAustatusGreaterThan(Integer value) {
            addCriterion("auStatus >", value, "austatus");
            return (Criteria) this;
        }

        public Criteria andAustatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("auStatus >=", value, "austatus");
            return (Criteria) this;
        }

        public Criteria andAustatusLessThan(Integer value) {
            addCriterion("auStatus <", value, "austatus");
            return (Criteria) this;
        }

        public Criteria andAustatusLessThanOrEqualTo(Integer value) {
            addCriterion("auStatus <=", value, "austatus");
            return (Criteria) this;
        }

        public Criteria andAustatusIn(List<Integer> values) {
            addCriterion("auStatus in", values, "austatus");
            return (Criteria) this;
        }

        public Criteria andAustatusNotIn(List<Integer> values) {
            addCriterion("auStatus not in", values, "austatus");
            return (Criteria) this;
        }

        public Criteria andAustatusBetween(Integer value1, Integer value2) {
            addCriterion("auStatus between", value1, value2, "austatus");
            return (Criteria) this;
        }

        public Criteria andAustatusNotBetween(Integer value1, Integer value2) {
            addCriterion("auStatus not between", value1, value2, "austatus");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNull() {
            addCriterion("updateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNotNull() {
            addCriterion("updateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeEqualTo(Date value) {
            addCriterion("updateTime =", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotEqualTo(Date value) {
            addCriterion("updateTime <>", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThan(Date value) {
            addCriterion("updateTime >", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("updateTime >=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThan(Date value) {
            addCriterion("updateTime <", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
            addCriterion("updateTime <=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIn(List<Date> values) {
            addCriterion("updateTime in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotIn(List<Date> values) {
            addCriterion("updateTime not in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
            addCriterion("updateTime between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
            addCriterion("updateTime not between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("createTime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("createTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("createTime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("createTime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("createTime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("createTime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("createTime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("createTime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("createTime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("createTime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("createTime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("createTime not between", value1, value2, "createtime");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}